function [CNC_state,ask_list2,CNC_swork]=queuelist2(CNC_state,ask_list2,CNC_swork,CNC_work,number,over)
ask_list2=[];
inner_a_list2=[1,4,5,7,8];
for i=1:length(inner_a_list2)
    if ~over(inner_a_list2(i))
        if CNC_swork(inner_a_list2(i))
            if (CNC_state(inner_a_list2(i))-CNC_work(2))>= 0
                ask_list2=[ask_list2,inner_a_list2(i)];
            end
        else
            CNC_state(inner_a_list2(i))=0;
            ask_list2=[ask_list2,inner_a_list2(i)];
        end
    end
    
end
end